import java.util.Random;
import java.util.Scanner;

public class GuessNumber {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Random random = new Random();
        int num = random.nextInt(99) + 1;

        // 生成随机数
        System.out.println(num);





        // 循环
        while (true){
            // 猜测7次
            System.out.println("*********\n游戏开始:");
            for (int i = 0 ; i < 7 ;i++){
                // 接收用户输入

                int input = sc.nextInt();

                // 比较数字
                if (input > num){
                    System.out.println(">");
                }else if(input < num){
                    System.out.println("<");
                }else if(input == num){
                    System.out.println("=");
                    break;
                }

                if (i == 6){
                    System.out.println(">>>游戏结束<<<");
                }

            }
            System.out.println("*********\n继续游戏输入:1\n终止游戏输入其他\n*********");
            if (sc.nextInt() == 1){
                continue;

            }else {
                break;
            }




        }



    }
}
